{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "5ae5a56b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "           时间            |           星期一           |           星期二           |           星期三           |           星期四           |           星期五           |\n",
      "          第一节           |             ，             |             ,              |            毛概            |            ,             |             ,              |\n",
      "        8：00~8：40        |             ，             |             ,              |         （张锦标）         |            ,             |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "          第二节           |             ，             |             ,              |            毛概            |            ,             |             ,              |\n",
      "        8：45~9：35        |             ，             |             ,              |         （张锦标）         |            ,             |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "          第三节           |             ，             |          创业基础          |         融合新闻学         |          python          |             ,              |\n",
      "       9：45~10：30        |             ，             |           (高进)           |          （高进）          |          (许智超)           |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "          第四节           |          大学英语          |          创业基础          |         融合新闻学         |          python          |        illustrator         |\n",
      "       10：35~11：15       |          (王瑾妍)          |           (高进)           |          （高进）          |          (许智超)           |          (阚凤霞)          |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "          第五节           |          大学英语          |          创业基础          |         融合新闻学         |          python          |        illustrator         |\n",
      "       11：20~12：00       |          (王瑾妍)          |           (高进)           |          （高进）          |          (许智超)           |          (阚凤霞)          |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "          第六节           |             ，             |             ,              |             ，             |            ,             |             ,              |\n",
      "       12：50~13：30       |             ，             |             ,              |             ，             |            ,             |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "          第七节           |             ，             |             ,              |             ，             |            ,             |             ,              |\n",
      "       13：40~14：20       |             ，             |             ,              |             ，             |            ,             |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "          第八节           |             ，             |     新媒体时代新闻评论     |             ，             |       广告文案写作       |             ,              |\n",
      "       14：30~15：10       |             ，             |           (高进)           |             ，             |           (罗希)           |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "          第九节           |             ，             |     新媒体时代新闻评论     |             ，             |       广告文案写作       |             ,              |\n",
      "       15：15~15：55       |             ，             |           (高进)           |             ，             |           (罗希)           |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "          第十节           |             ，             |             ,              |             ，             |              ,               |             ,              |\n",
      "       16：10~16：50       |             ，             |             ,              |             ，             |              ,               |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "         第十一节          |             ，             |             ,              |             ，             |            ,             |             ,              |\n",
      "       16：55~17：35       |             ，             |             ,              |             ，             |            ,             |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "         第十二节          |             ，             |           羽毛球           |          大学英语          |            毛概            |             ,              |\n",
      "       18：45~19：25       |             ，             |          (何鹏伟)          |         （王瑾妍）         |         (张锦标)          |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "         第十三节          |             ，             |           羽毛球           |          大学英语          |            毛概            |             ,              |\n",
      "       19：30~20：10       |             ，             |          (何鹏伟)          |         （王瑾妍）         |         (张锦标)          |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "         第十四节          |             ，             |             ,              |             ，             |            毛概            |             ，             |\n",
      "       20：15~20：55       |             ，             |             ,              |             ，             |          (张锦标)           |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n",
      "         第十五节          |             ，             |             ,              |             ，             |            ,             |             ,              |\n",
      "       21：05~21：45       |             ，             |             ,              |             ，             |            ,             |             ,              |\n",
      "_____________________________________________________________________________________________________________________________________________________________________\n"
     ]
    }
   ],
   "source": [
    "print(\"_\"*165)\n",
    "print(\"{:^25}|{:^25}|{:^25}|{:^25}|{:^25}|{:^25}|\".format(\"时间\",\"星期一\",\"星期二\",\"星期三\",\"星期四\",\"星期五\"))\n",
    "print(\"{:^24}|{:^27}|{:^28}|{:^26}|{:^26}|{:^28}|\".format(\"第一节\",\"，\",\",\",\"毛概\",\",\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^28}|{:^23}|{:^26}|{:^28}|\".format(\"8：00~8：40\",\"，\",\",\",\"（张锦标）\",\",\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^24}|{:^27}|{:^28}|{:^26}|{:^26}|{:^28}|\".format(\"第二节\",\"，\",\",\",\"毛概\",\",\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^28}|{:^23}|{:^26}|{:^28}|\".format(\"8：45~9：35\",\"，\",\",\",\"（张锦标）\",\",\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^24}|{:^27}|{:^24}|{:^23}|{:^26}|{:^28}|\".format(\"第三节\",\"，\",\"创业基础\",\"融合新闻学\",\"python\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^26}|{:^24}|{:^26}|{:^28}|\".format(\"9：45~10：30\",\"，\",\"(高进)\",\"（高进）\",\"(许智超)\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^24}|{:^24}|{:^24}|{:^23}|{:^26}|{:^28}|\".format(\"第四节\",\"大学英语\",\"创业基础\",\"融合新闻学\",\"python\",\"illustrator\"))\n",
    "print(\"{:^25}|{:^25}|{:^26}|{:^24}|{:^26}|{:^25}|\".format(\"10：35~11：15\",\"(王瑾妍)\",\"(高进)\",\"（高进）\",\"(许智超)\",\"(阚凤霞)\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^24}|{:^24}|{:^24}|{:^23}|{:^26}|{:^28}|\".format(\"第五节\",\"大学英语\",\"创业基础\",\"融合新闻学\",\"python\",\"illustrator\"))\n",
    "print(\"{:^25}|{:^25}|{:^26}|{:^24}|{:^26}|{:^25}|\".format(\"11：20~12：00\",\"(王瑾妍)\",\"(高进)\",\"（高进）\",\"(许智超)\",\"(阚凤霞)\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^24}|{:^27}|{:^28}|{:^27}|{:^26}|{:^28}|\".format(\"第六节\",\"，\",\",\",\"，\",\",\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^28}|{:^27}|{:^26}|{:^28}|\".format(\"12：50~13：30\",\"，\",\",\",\"，\",\",\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^24}|{:^27}|{:^28}|{:^27}|{:^26}|{:^28}|\".format(\"第七节\",\"，\",\",\",\"，\",\",\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^28}|{:^27}|{:^26}|{:^28}|\".format(\"13：40~14：20\",\"，\",\",\",\"，\",\",\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^24}|{:^27}|{:^19}|{:^27}|{:^20}|{:^28}|\".format(\"第八节\",\"，\",\"新媒体时代新闻评论\",\"，\",\"广告文案写作\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^26}|{:^27}|{:^26}|{:^28}|\".format(\"14：30~15：10\",\"，\",\"(高进)\",\"，\",\"(罗希)\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^24}|{:^27}|{:^19}|{:^27}|{:^20}|{:^28}|\".format(\"第九节\",\"，\",\"新媒体时代新闻评论\",\"，\",\"广告文案写作\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^26}|{:^27}|{:^26}|{:^28}|\".format(\"15：15~15：55\",\"，\",\"(高进)\",\"，\",\"(罗希)\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^24}|{:^27}|{:^28}|{:^27}|{:^30}|{:^28}|\".format(\"第十节\",\"，\",\",\",\"，\",\",\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^28}|{:^27}|{:^30}|{:^28}|\".format(\"16：10~16：50\",\"，\",\",\",\"，\",\",\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^23}|{:^27}|{:^28}|{:^27}|{:^26}|{:^28}|\".format(\"第十一节\",\"，\",\",\",\"，\",\",\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^28}|{:^27}|{:^26}|{:^28}|\".format(\"16：55~17：35\",\"，\",\",\",\"，\",\",\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^23}|{:^27}|{:^25}|{:^24}|{:^26}|{:^28}|\".format(\"第十二节\",\"，\",\"羽毛球\",\"大学英语\",\"毛概\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^25}|{:^23}|{:^24}|{:^28}|\".format(\"18：45~19：25\",\"，\",\"(何鹏伟)\",\"（王瑾妍）\",\"(张锦标)\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^23}|{:^27}|{:^25}|{:^24}|{:^26}|{:^28}|\".format(\"第十三节\",\"，\",\"羽毛球\",\"大学英语\",\"毛概\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^25}|{:^23}|{:^24}|{:^28}|\".format(\"19：30~20：10\",\"，\",\"(何鹏伟)\",\"（王瑾妍）\",\"(张锦标)\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^23}|{:^27}|{:^28}|{:^27}|{:^26}|{:^27}|\".format(\"第十四节\",\"，\",\",\",\"，\",\"毛概\",\"，\"))\n",
    "print(\"{:^25}|{:^27}|{:^28}|{:^27}|{:^26}|{:^28}|\".format(\"20：15~20：55\",\"，\",\",\",\"，\",\"(张锦标)\",\",\"))\n",
    "print(\"_\"*165)\n",
    "print(\"{:^23}|{:^27}|{:^28}|{:^27}|{:^26}|{:^28}|\".format(\"第十五节\",\"，\",\",\",\"，\",\",\",\",\"))\n",
    "print(\"{:^25}|{:^27}|{:^28}|{:^27}|{:^26}|{:^28}|\".format(\"21：05~21：45\",\"，\",\",\",\"，\",\",\",\",\"))\n",
    "print(\"_\"*165)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d7b36ac4",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "当前时间是: 2021-09-23 17:57 Thursday\n",
      "您想要查询星期几：2\n",
      "周二有三节课\n",
      "创业实践\n",
      "新媒体时代新闻评论\n",
      "羽毛球\n",
      "请输入你想要查询的时间：18:45\n",
      "羽毛球\n",
      "东体\n",
      "何鹏伟\n"
     ]
    }
   ],
   "source": [
    "import datetime \n",
    "import time \n",
    "import random \n",
    "\n",
    "# right_this_week = random.randint(1,5) \n",
    "\n",
    "right_now_time = time.strftime(\"%Y-%m-%d %H:%M %A\") \n",
    "print(\"当前时间是:\", right_now_time)\n",
    "\n",
    "while True:\n",
    "    right_this_week = input(\"您想要查询星期几：\") \n",
    "    right_this_week = int(right_this_week) \n",
    "    if right_this_week == 1:\n",
    "        print(\"周一有一节课\\n大学英语\") \n",
    "        right_this_time = input(\"请输入你想要查询的时间：\") \n",
    "        if right_this_time == \"10:35\":\n",
    "            print(\"python语言\\n10教204\\n王瑾妍\")  \n",
    "        else:\n",
    "            print(\"剩下的时间没有课\") \n",
    "    elif right_this_week == 2: \n",
    "        print(\"周二有三节课\\n创业实践\\n新媒体时代新闻评论\\n羽毛球\") \n",
    "        right_this_time = input(\"请输入你想要查询的时间：\") \n",
    "        if right_this_time == \"9:45\":\n",
    "            print(\"创业实践\\n1教205\\n高进\") \n",
    "        elif right_this_time == \"14:30\":\n",
    "            print(\"新媒体时代新闻评论\\n3实206\\n高进\") \n",
    "        elif right_this_time == \"18:45\":\n",
    "            print(\"羽毛球\\n东体\\n何鹏伟\") \n",
    "        else:\n",
    "            print(\"剩下的时间没有课\") \n",
    "    elif right_this_week == 3: \n",
    "        print(\"周三有三节课\\n毛概理论\\n融合新闻学\\n大学英语\")\n",
    "        right_this_time = input(\"请输入你想要查询的时间：\") \n",
    "        if right_this_time == \"8:00\": \n",
    "            print(\"毛概理论\\n9教207\\n张锦标\") \n",
    "        elif right_this_time == \"9:45\": \n",
    "            print(\"融合新闻学\\n新综612\\n高进\") \n",
    "        elif right_this_time == \"18:45\": \n",
    "            print(\"大学英语\\n10教204\\n王瑾妍\") \n",
    "        else:\n",
    "            print(\"剩下的时间没有课\")\n",
    "    elif right_this_week == 4: \n",
    "        print(\"周四有三节课\\npython\\n广告文案写作\\n毛概实践\") \n",
    "        right_this_time = input(\"请输入你想要查询的时间：\") \n",
    "        if right_this_time == \"9:45\": \n",
    "            print(\"python\\n新综612\\n许智超\") \n",
    "        elif right_this_time == \"14:30\": \n",
    "            print(\"广告文案写作\\n1教303\\n罗希\") \n",
    "        elif right_this_time == \"18:45\": \n",
    "            print(\"毛概实践\\n9教201\\n张锦标\") \n",
    "        else:\n",
    "            print(\"剩下的时间没有课\") \n",
    "    elif right_this_week == 5: \n",
    "        print(\"周五有一节课\\nillustrator\") \n",
    "        right_this_time = input(\"请输入你想要查询的时间：\") \n",
    "        if right_this_time == \"10:35\":\n",
    "            print(\"AI\\n新综612\\n阚凤霞\") \n",
    "        else:\n",
    "            print(\"剩下的时间没有课\") \n",
    "    else:\n",
    "        print(\"周末没有课 广南第一亚索回归\")\n",
    "        break"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "872acb35",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {
    "height": "calc(100% - 180px)",
    "left": "10px",
    "top": "150px",
    "width": "303.837px"
   },
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
